<html>
<head><meta charset="utf-8"><title>Error in building rust from source · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Error.20in.20building.20rust.20from.20source.html">Error in building rust from source</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="202652119"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Error%20in%20building%20rust%20from%20source/near/202652119" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lzx <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Error.20in.20building.20rust.20from.20source.html#202652119">(Jul 02 2020 at 05:43)</a>:</h4>
<p>When buiding rust from source:<br>
In got following error:<br>
<a href="/user_uploads/4715/fb2sGF4qhur8vo2kR1-fvjrR/image.png">image.png</a> <br>
<a href="/user_uploads/4715/SWschTlS6qmeDfscJFhTKlWT/image.png">image.png</a> <br>
what should it do to fix it?</p>
<div class="message_inline_image"><a href="/user_uploads/4715/fb2sGF4qhur8vo2kR1-fvjrR/image.png" title="image.png"><img src="/user_uploads/4715/fb2sGF4qhur8vo2kR1-fvjrR/image.png"></a></div><div class="message_inline_image"><a href="/user_uploads/4715/SWschTlS6qmeDfscJFhTKlWT/image.png" title="image.png"><img src="/user_uploads/4715/SWschTlS6qmeDfscJFhTKlWT/image.png"></a></div>



<a name="202652265"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Error%20in%20building%20rust%20from%20source/near/202652265" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Error.20in.20building.20rust.20from.20source.html#202652265">(Jul 02 2020 at 05:46)</a>:</h4>
<p>Did you run out of space in <code>/tmp</code>? Or maybe it needs to (not) be a <code>tmpfs</code>? By the way</p>



<a name="202652354"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Error%20in%20building%20rust%20from%20source/near/202652354" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Error.20in.20building.20rust.20from.20source.html#202652354">(Jul 02 2020 at 05:48)</a>:</h4>
<p>But that looks like the CentOS / RHEL / Fedora version of building Rust from source. The "official" way is <a href="https://github.com/rust-lang/rust/#installing-from-source">https://github.com/rust-lang/rust/#installing-from-source</a>, although there might be some Red Hat people around.</p>



<a name="202652377"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Error%20in%20building%20rust%20from%20source/near/202652377" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Error.20in.20building.20rust.20from.20source.html#202652377">(Jul 02 2020 at 05:49)</a>:</h4>
<p>I guess you could try to ping <strong>cuviper</strong></p>



<a name="202653097"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Error%20in%20building%20rust%20from%20source/near/202653097" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lzx <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Error.20in.20building.20rust.20from.20source.html#202653097">(Jul 02 2020 at 06:04)</a>:</h4>
<p>No, I just built it in /tmp. And what i did is use rpmbuild to build rust, and it calls x.py to build rust from source, but then it has something wrong like above.</p>



<a name="202700320"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Error%20in%20building%20rust%20from%20source/near/202700320" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Error.20in.20building.20rust.20from.20source.html#202700320">(Jul 02 2020 at 15:03)</a>:</h4>
<p>"Error: Program"? Well that's not very helpful... Is there any more error output that you've trimmed here?</p>



<a name="202700484"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Error%20in%20building%20rust%20from%20source/near/202700484" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Error.20in.20building.20rust.20from.20source.html#202700484">(Jul 02 2020 at 15:04)</a>:</h4>
<p>tmpfs space is a good hunch -- it's likely too small for building rust, unless you have a ton of RAM</p>



<a name="202710356"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Error%20in%20building%20rust%20from%20source/near/202710356" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Error.20in.20building.20rust.20from.20source.html#202710356">(Jul 02 2020 at 16:18)</a>:</h4>
<p>But I think <code>/tmp</code> is a real partition on Fedora and friends?</p>



<a name="202710769"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Error%20in%20building%20rust%20from%20source/near/202710769" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Error.20in.20building.20rust.20from.20source.html#202710769">(Jul 02 2020 at 16:21)</a>:</h4>
<p>According to the internet <code>/tmp</code> has been a <code>tmpfs</code> on Fedora since 2012 to reduce writes to SSD's.</p>



<a name="202711700"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Error%20in%20building%20rust%20from%20source/near/202711700" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Error.20in.20building.20rust.20from.20source.html#202711700">(Jul 02 2020 at 16:29)</a>:</h4>
<p>Ah. I recall it not being <code>tmpfs</code> on CentOS</p>



<a name="202835198"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Error%20in%20building%20rust%20from%20source/near/202835198" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> cuviper <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Error.20in.20building.20rust.20from.20source.html#202835198">(Jul 03 2020 at 20:30)</a>:</h4>
<p>Oh, yeah, I forgot that difference -- Fedora does use tmpfs /tmp, but RHEL and CentOS still do not</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>